package com.ht.module.bus.service;

import com.ht.module.bus.entity.TTransportationCompanyInformation;
import com.ht.module.bus.entity.TVehicleInformation;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ht.util.Pager;

import java.util.List;

/**
 * <p>
 * 承运企业车辆信息表 服务类
 * </p>
 *
 * @author hejialun
 * @since 2024-07-29
 */
public interface TVehicleInformationService extends IService<TVehicleInformation> {

    Pager<TVehicleInformation> findPageAuth(Pager<TVehicleInformation> pager,TVehicleInformation en);

    List<TVehicleInformation> findListAuth(TVehicleInformation en);

    void add(TVehicleInformation en);

    /**
     * 查询有权限的车辆，并按企业和车辆构建成树结构
     * @param en
     * @return
     */
    List<TTransportationCompanyInformation> findVehicleBuildTree(TVehicleInformation en);

    List<String> findCarBrand(String carBrand);

    void editById(TVehicleInformation en);
}
